{% if schedule.actual_duty_person %}
    <span>当天值班人：<strong style="color:blue">{{ schedule.actual_duty_person.name }}</strong></span>
    {% if not out_deadline %}
        <div class="col-auto btn-group">
            {% if schedule.is_arrangement %}
                <button class="btn btn-sm btn-success disabled">已签到</button>
                <button class="btn btn-sm btn-primary js-change-sign-in"
                        data-url="{% url 'change_sign_in' pk=schedule.pk mode=mode %}">
                    换班签到
                </button>
            {% else %}
                <button class="btn btn-sm btn-primary js-sign-in"
                        data-url="{% url 'sign_in' pk=schedule.pk mode=mode %}">签到
                </button>
                <button class="btn btn-sm btn-warning disabled">已换班签到</button>
            {% endif %}
        </div>
    {% endif %}
{% else %}
    <span>值班人：<strong style="color:blue">{{ schedule.arrange_duty_person.name }}</strong> <strong
            style="color:red">未签到</strong></span>
    {% if not out_deadline %}
        <div class="col-auto btn-group">
            <button class="btn btn-sm btn-primary js-sign-in" data-url="{% url 'sign_in' pk=schedule.pk mode=mode %}">
                签到
            </button>
            <button class="btn btn-sm btn-outline-primary js-change-sign-in"
                    data-url="{% url 'change_sign_in' pk=schedule.pk mode=mode %}">换班签到
            </button>
        </div>
    {% endif %}
{% endif %}
